package com.huixue.cn.ztej.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huixue.cn.ztej.bean.RoleResource;
import com.huixue.cn.ztej.dao.RoleResourceDao;

@Service
public class SysRoleResourceService {

	@Autowired
	private RoleResourceDao roleResourceDao;
	
	public long addBatch(List<RoleResource> list){
		return roleResourceDao.addBatch(list);
	}
	
	public List<RoleResource> findResourceByRole(int roleId){
		List<RoleResource> list = roleResourceDao.findResourceByRole(roleId);
		
		System.out.println("=========list========"+list.size());
		return list;
	}
}
